package org.amos.kafka;

import org.amos.kafka.callback.DefaultSendCallback;
import org.amos.kafka.core.KafkaSender;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.annotation.EnableKafka;

@Configuration
@EnableKafka
public class KafkaAutoConfiguration {

    @Bean
    public KafkaSender kafkaSender() {
        return new KafkaSender();
    }

    @Bean
    public DefaultSendCallback defaultSendCallback() {
        return new DefaultSendCallback();
    }
}
